<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../jstl/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="keywords" content="OVVI OTA Manager">
<meta name="description" content="OVVI OTA Manager">
<title>WQL后台管理系统</title>
<%@ include file="../jstl/common_static_resources.jsp"%>
<script type="text/javascript" src="/static/web/js/test/modify.js"></script>
</head>
<body>
	<div class="page-container page-container-add">
		<form class="form form-horizontal" id="form-advertiser-add" action="/advertiser/save" method="post">
			<input type="hidden" value="${advertiser.id }" name="id" />
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>消息链接地址：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="text" class="input-text" maxlength="255" value="" placeholder="消息链接地址" id="url" name="url">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>图标上传：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="hidden" value="" name="icon">
					<iframe src="/test/page?page=img_upload" width="100%" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>大图上传：</label>
				<div class="formControls col-xs-8 col-sm-9">
					<input type="hidden" value="" name="big_icon">
					<iframe src="/test/page?page=img_upload" width="100%" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>
				</div>
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
					<button class="btn btn-primary radius" type="submit">
						<i class="Hui-iconfont">&#xe632;</i> 保存并提交
					</button>
					<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		function reinitIframe() {
			var iframes = $('iframe').get();
			for (var i = 0, j = iframes.length; i < j; i++) {
				try {
					var iframe = iframes[i];
					var bHeight = $('.page_container', iframe.contentWindow.document.body).outerHeight();
					iframe.height = bHeight + 20;
				} catch (ex) {
				}
			}
		}
	</script>
</body>
</html>